package com.jeesite.modules.app.customer.points.rule;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.jeesite.common.mapper.JsonMapper;
import com.jeesite.modules.zx.points.rule.entity.TpointsRule;
import com.jeesite.modules.zx.points.rule.service.TpointsRuleService;

@Controller
@RequestMapping(value = "/app/customer/points/rule/")
public class AppPointsRuleController {
	@Autowired
	private TpointsRuleService tpointsRuleService;
	@RequestMapping(value="findPage")
	public void findPage(HttpServletRequest request,HttpServletResponse response){
		TpointsRule entity=new TpointsRule();
		List<TpointsRule> findList = tpointsRuleService.findList(entity);
		JSONArray parseArray = JSONObject.parseArray(JsonMapper.toJson(findList));
	}
}
